package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 马迎迎
 * @Title: Catelog2VO
 * @Package com.atguigu.gulimall.product.vo
 * @Description: TODO(添加描述)
 * @date 2021年05月21日 10:08
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
//二级分类vo
public class Catelog2VO {
    private String catalog1Id;//一级父分类
    private List<Catelog3VO> catalog3List;//三级子分类
    private String id;
    private String name;
    /**
     * 三级分类vo
     *   "catalog2Id":"1",
     *                     "id":"2",
     *                     "name":"网络原创"
     *                 },
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3VO{
        private String catalog2Id;//2级父分类
        private String id;
        private String name;
    }
}
